package com.qf.service;

import com.codingapi.txlcn.tc.annotation.LcnTransaction;
import com.qf.dao.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
public class UserService implements BService{
    @Autowired
    private UserMapper userMapper;
    @Override
    @Transactional
    @LcnTransaction
    public void add() {

        userMapper.add();
        int i=1/0;
    }
}
